import 'package:flutter/material.dart';
import 'package:xiongan_app_yy/widgets/login_widgets.dart';

//登录界面
class LoginPage extends StatelessWidget {
  final String img_bg = "assets/images/login_bg.png";

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
        resizeToAvoidBottomPadding: false,
        body: Stack(
          children: <Widget>[
            Container(
              alignment: Alignment.bottomCenter,
              child: Image.asset(
                img_bg,
                fit: BoxFit.fill,
              ),
            ),
            Container(
              child: Column(
                children: <Widget>[
                  HeaderImgWidget(
                    headerIcon: Icon(
                      Icons.person,
                      size: 60,
                      color: Colors.white,
                    ),
                  ),
                  LoginFormWidget()
                ],
              ),
            )
          ],
        ));
  }
}
